/**
 * 
 */
package com.xbang.attendance.web.action.delivery.deliverydetail;

import com.demo2do.lighturl.annotation.Action;
import com.xbang.core.struts.support.BaseActionSupport;

/**
 * @author dev.zhang
 * 
 */
public class View extends BaseActionSupport {

	private static final long serialVersionUID = -4176390521493974237L;

	private Integer id;

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	@Override
	public String execute() throws Exception {
		return "success";
	}

	/**
	 * 编辑产品信息
	 * 
	 * @return
	 * @throws Exception
	 */
	@Action("/delivery/details/${id}/edit")
	public String edit() throws Exception {
		return "detail";
	}

	/**
	 * 添加产品信息
	 * 
	 * @return
	 * @throws Exception
	 */
	@Action("/delivery/details/new")
	public String add() throws Exception {
		return "detail";
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

}
